/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seari.service;

import com.seari.bean.GraphicPosition;
import com.seari.mapper.GraphicPositionMapper;
import com.seari.pojo.QueryGraphicPosition;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Rainbow
 */
@Service("graphicPositionService")
public class GraphicPositionServiceImpl implements GraphicPositionService
{
    
    @Autowired
    private GraphicPositionMapper graphicPositionMapper;
    @Override
    public int addGraphicPosition(List<GraphicPosition> list)
    {
        return graphicPositionMapper.addGraphicPosition(list);
    }

    @Override
    public List<GraphicPosition> getGraphicPositionByParams(QueryGraphicPosition qgp)
    {
        return graphicPositionMapper.getGraphicPositionByParams(qgp);
    }

    @Override
    public int deleteGraphicPositionByName(String graphicName)
    {
        return graphicPositionMapper.deleteGraphicPositionByName(graphicName);
    }
    
}
